package com.xc.feign;

import com.xc.utils.JsonData;
import com.xc.vo.NewUserCouponRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xingchen
 * @description
 * @create 2021/11/28 17:07
 */
@FeignClient(name = "mall-coupon-service")
public interface CouponFeignService {

    /**
     * 新用户注册发放优惠券
     * @param newUserCouponRequest
     * @return
     */
    @PostMapping("/api/coupon/v1/new_user_coupon")
    JsonData addNewUserCoupon( @RequestBody NewUserCouponRequest newUserCouponRequest);
}
